package com.mz.mattress.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mz.mattress.api.common.BaseEntity;
import lombok.Data;

@Data
@TableName("mz_merchant_detail")
public class MerchantDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    //  merchant_id
    @TableId(type = IdType.INPUT)
    private Integer id;

    //营业执照
    private String license;

    //门店图片 多张逗号分割
    private String shop;

    //身份证照片正面
    private String identFront;

    //身份证照片背面
    private String identBack;

    //视频
    private String video;

    //备注
    private String remark;

    public void filled(Merchant merchant) {
        merchant.setLicense(license);
        merchant.setShop(shop);
        merchant.setIdentFront(identFront);
        merchant.setIdentBack(identBack);
        merchant.setVideo(video);
        merchant.setRemark(remark);
    }

}
